import Item from './LogItem/LogItem'
import './Logs.css'

const logs = () => {
    const logsData = [
        {
            key:'001',
            date:new Date(2024,5-1,4),
            title:"吃饭",
            time:30
        },
        {
            key:'002',
            date:new Date(2024,5-1,2),
            title:"睡觉",
            time:20
        }
    ]
    const logsItemData = logsData.map(item =>  <Item {...item}/>)
    
    return <div className="logs">
        {logsItemData}

    </div>
}

export default logs;
